use if inrange(therclss, "280808", "280812") using "$data_in/PDTS", clear

save "$data_out/opioid_prescriptions", replace

use if inlist(therclss, "281608", "281604", "281208", "282408") using "$data_in/PDTS", clear

save "$data_out/bh_prescriptions", replace

